package com.young.freedom.aop;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;


@Component
public class AopTestClass {
	
	static final Logger logger = LoggerFactory.getLogger(AopTestClass.class);

	public void publicMethod(String test){
		logger.info("This is the publicMethod");
	}
	
	public String returnValue(){
		String value = "I'm returned value !";
		logger.info("This is the returnValue Method, returned value is :"+value);
		return value;
	}
	
	public void throwMethod(){
		logger.info("This is the throwMethod");
		throw new RuntimeException();
	}
	
	@Auditable(AuditCode.Audit1)
	public void annotationMethod(){
		logger.info("This is the annotationMethod");
	}
}
